import ChromeSlot from '@akinon/pz-theme/src/chrome/chrome-slot'; import { buildAccountPageContext } from '@akinon/pz-theme/src/chrome/page-context'; import { auth } from 'auth'; /** * Shared takeover slot for the account subpages. Each subpage keeps its own * layout so a composition replaces exactly one screen — a single slot higher * up would leak one composition across every account route. */ export default async function AccountPageSlot({ slug, path, children }: { slug: string; path: string; children: React.ReactNode; }) { // The account layout above already gates auth; this read only feeds the // context's user fields. Null-safe on purpose: nested layouts render in // parallel with the parent's redirect for signed-out visitors. const session = await auth(); return ( ) ?? null })} /> ); }